package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class SubmultisetPredicatePart2 implements WhenOperand {

    private int beginIndex;
    private int endIndex;
    private boolean not;
    private boolean of;
    private MultisetValueExpression multisetValueExpression;

    public SubmultisetPredicatePart2(int beginIndex,
                                     boolean not,
                                     boolean of,
                                     MultisetValueExpression multisetValueExpression) {
        this.beginIndex = beginIndex;
        this.endIndex = multisetValueExpression.getEndIndex();
        this.not = not;
        this.of = of;
        this.multisetValueExpression = multisetValueExpression;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public boolean isNot() {
        return not;
    }

    public boolean isOf() {
        return of;
    }

    public MultisetValueExpression getMultisetValueExpression() {
        return multisetValueExpression;
    }

}
